package cm.aoplog.entity;

import cm.aoplog.enums.OperateTypeEnum;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author: yxh
 * @Description: 实体
 * @Date: Created in 2022/9/13 15:53
 * @Modified By:
 */
@TableName(value = "log_record", autoResultMap = true)
@Data
public class LogRecordDO {
    /**
     * 日志主键
     */
    @TableId
    private Integer id;

    private String module;
    /**
     * 操作名
     */
    private String name;
    /**
     * 操作分类
     * 枚举 {@link OperateTypeEnum}
     */
    private Integer type;

    /**
     * Java 方法名
     */
    private String javaMethod;


    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
